using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Reflection;
using System.Resources;
using System.Threading;
using SportTracksPluginFramework;
using ZoneFiveSoftware.Common.Data.Fitness;
using ZoneFiveSoftware.Common.Visuals;
using ZoneFiveSoftware.Common.Visuals.Fitness;
using ZoneFiveSoftware.Common.Visuals.Mapping;
using FilteredStatistics.View;

namespace FilteredStatistics.View
{
    class PluginView
    {
        public PluginView()
        {
        }

        public static string GetLocalizedString(string name)
        {
            String localizedString = null;

            try
            {
                localizedString = ResourceManager.GetString(name);
            }
            catch
            {
            }

            Debug.Assert(localizedString != null, "Unable to find string resource named " + name);

            return localizedString;
        }

        public static CultureInfo UICulture
        {
            get { return Thread.CurrentThread.CurrentCulture; }
        }

        public static ResourceManager ResourceManager
        {
            get { return m_ResourceManager; }
        }

        private static ResourceManager m_ResourceManager = new ResourceManager("FilteredStatistics.Resources.StringResources",
                                                                               Assembly.GetExecutingAssembly());
    }
}
